Determines the behaviour of the control.
Syntax
dbpCombo1.Style [ = Combostyle ]
The List property syntax has these parts;
Part | Description |
dbpCombo1 | An instance of an ComboOne control. |
ComboStyle | If set to true, list box portion open when hitting a key. |
Combo Box Styles
There are five ComboONE styles. Each style can be set at either design or run time and uses values, or equivalent Visual Basic constants, to set the style of the combo box.
Style | Value | Constant |
Drop-down combo box | 0 | DropDownCombo |
Simple combo box | 1 | DropDownSimple |
Drop-down list box | 2 | DropDownList |
Searchable Combo | 3 | DropDownSeekList |
like 3, but allows new entries | 4 | DropDownSeekInsertable |
Further Information:
Drop-down Combo Box
With the default setting (Style = 0 – DropdownCombo), a
combo box is a drop-down combo box. The user can either enter
text directly (as in a text box) or click the detached arrow at
the right of the combo box to open a list of choices. Selecting
one of the choices inserts it into the text portion at the top of
the combo box. The user also can open the list by pressing ALT+ DOWN ARROW when the control has the focus.
Simple Combo Box
Setting the Style property of a combo box to 1 –
DropDownSimple specifies a simple combo box in which the list is
displayed at all times. To display all entries in the list, you
must draw the list box large enough to display the entries. A
vertical scroll bar is automatically inserted when there are more
entries than can be displayed. The user can still enter text
directly or select from the list. As with a drop-down combo box,
a simple combo box also allows users to enter choices not on the
list.
Drop-down List Box
A drop-down list box (Style = 2 – DropDownList) is like
a regular list box — it displays a list of items from which
a user must choose. Unlike list boxes, however, the list is not
displayed until you click the arrow to the right of the box. The
key difference between this and a drop-down combo box is that the
user can't type into the box, he can only select an item from the
list. Use this type of list box when space is at a premium.
Drop-down SeekList
A drop-down SeekList (Style = 3 - DropDownSeekList) is
similar to a Drop-down List Box. But the user is only allowed to
enter a text in the ComboOne Box which is an item of the Listbox
Portion.
Drop-downSeekInsertable
By using the 4, setting (Style =
4 – DropDownSeekInsertable) the combo box is like a
Drop-down SeekList with the extension to enter datas which are
not in the Listbox Portion.
Remarks
For the ComboOne control, follow these guidelines in deciding which setting to choose:
Copyright (c) 1998 DBPro - Database Solutions for Professionals GmbH